Array Length is Too Large (ALTL)

Description:

ALTL detects cases where an attempt to create an array containing more than System.Int32.MaxValue / 2 elements is made.

Incorrect:

procedure SomeClass.create(x: integer);
var
a: array of char;
begin
  if x > 2000000000 then
  begin
    SetLength(a,x);
  end;
  ...
end;